﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class iot_device_software_publish
{
    [Key]
    public long swp_id { get; set; }

    [StringLength(255)]
    public string swp_guid { get; set; }

    [StringLength(50)]
    public string swp_command { get; set; }

    [StringLength(50)]
    public string swp_service_name { get; set; }

    [StringLength(200)]
    public string swp_packages_url { get; set; }

    /// <summary>
    /// 0正常，1已过期
    /// </summary>
    public int? swp_status { get; set; }

    /// <summary>
    /// 版本号
    /// </summary>
    [Required]
    [StringLength(10)]
    public string swp_version { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? swp_mod_time { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? swp_add_time { get; set; }
}
